package com.company.project.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import tk.mybatis.mapper.entity.Condition;

import com.company.project.core.AbstractService;
import com.company.project.dao.TradeMqConsumerLogMapper;
import com.company.project.model.TradeMqConsumerLog;
import com.company.project.service.TradeMqConsumerLogService;

/**
 * Created by CodeGenerator on 2018/12/08.
 */
@Service
@Transactional
public class TradeMqConsumerLogServiceImpl extends AbstractService<TradeMqConsumerLog> implements
		TradeMqConsumerLogService {
	@Resource
	private TradeMqConsumerLogMapper tradeMqConsumerLogMapper;

	@Override
	public TradeMqConsumerLog selectOne(TradeMqConsumerLog log) {
		return tradeMqConsumerLogMapper.selectOne(log);
	}

	@Override
	public int updateByConditionSelective(TradeMqConsumerLog log, Condition c) {
		return tradeMqConsumerLogMapper.updateByConditionSelective(log, c);
	}

	@Override
	public int insertSelective(TradeMqConsumerLog log) {
		return tradeMqConsumerLogMapper.insertSelective(log);
	}

	@Override
	public int updateByPrimaryKeySelective(TradeMqConsumerLog log) {
		return tradeMqConsumerLogMapper.updateByPrimaryKeySelective(log);

	}
}
